#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
@Project ：图灵学习 
@File    ：6.添加字符串数据.py
@IDE     ：PyCharm 
@Author  ：ChenLiGao
@Date    ：2024-11-14 09:46
'''
from redis import Redis

with Redis() as db:
    result = db.set("stu_name", "安娜")
    print(result)